home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / music / patchlib.arc / PATCHSRC.ARC / COMPILE.DOC next >
Encoding:
Text File  |  1985-11-20  |  1.2 KB  |  26 lines

  1. Easy method
  2.  
  3. -----------
  4.  
  5. Change the first line of code ("#include <curses.h>") to #include <curses.c>
  6.  
  7. (curses.c includes all the appropiate files).  #define the appropiate synth.
  8.  
  9. Compile.  Link without using aesbind or vdibind (if you are *really* lazy,
  10.  
  11. you can link with them, but it takes longer).  That's it!
  12.  
  13.  
  14.  
  15. Slightly Less Easy method (but the way I do it)
  16.  
  17. -------------------------
  18.  
  19. If you like the stuff in curses.c and think you may want to use it in other
  20.  
  21. programs you write then....  Don't change the code (except #define your synth).
  22.  
  23. Compile and assemble curses.c resulting in curses.o .  Compile patch.c .  Link
  24.  
  25. patch without aesbind or vdibind but *with* curses.o .  That's it!
  26.  
  27.  
  28.  
  29. Notes
  30.  
  31. -----
  32.  
  33. This is Alcyon C code (v4.14).  If you are using Megamax C (with the 32K limit) 
  34.  
  35. I hope you have some way of getting around that limit for large arrays because 
  36.  
  37. the code depends vitally on the 'voices' and 'v_names' arrays and they are 
  38.  
  39. *large*.  If you could live with a much smaller limit on the number of voices 
  40.  
  41. in a single library you could change the preprocessor variable VOICES from 1000 
  42.  
  43. to 100 or whatever.
  44.  
  45.  
  46.  
  47. If your osbind.h file doesn't already include it, you may have to:
  48.  
  49. #define Vsync()    xbios(37)
  50.  
  51.